package com.yuxl.admin.manager.auth.core.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @author yuxl
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("auth_menu")
public class AuthMenu {
    @Id
    private Long id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "路由")
    private String route;

    @Schema(description = "菜单顺序")
    private String order;

    @Schema(description = "是否开启")
    private boolean enabled;

    @Column("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Column("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}